package com.xy.tool.context;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class UserContext {

    public final static String REQUEST_HEADER_AUTHORIZATION = "Authorization";

    /**
     * 租户ID
     */
    private Long tenantId;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 用户名
     */
    private String userName;
    /**
     * 分组Id
     */
    private Long userGroupId;
    /**
     * 分组名称
     */
    private String userGroupName;
    /**
     * 分组简称
     */
    private String userGroupAbbr;
}
